package com.yuntai.pms.model.dto.handler;

import com.alibaba.fastjson.JSON;

import java.io.Serializable;
import java.util.Date;

public class ResourceServerDto implements Serializable {

	private static final long serialVersionUID = -2998817560949994520L;
	
	private Long id;				// 自增长主键
	private String serverName;		// 服务器资源名，不可超过32
	private String serverSecret;	// 服务器Secret，不可超过32
	private String dubboGroup;		// 服务分组，不可32
	private String description;		// 描述，不可超过128
	private Date createTime;		// 创建时间
	private Date updateTime;		// 更新时间
	private String status;			// '状态：有效(enabled)、无效(disabled)，待审核(check)'
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getServerName() {
		return serverName;
	}
	public void setServerName(String serverName) {
		this.serverName = serverName;
	}
	public String getServerSecret() {
		return serverSecret;
	}
	public void setServerSecret(String serverSecret) {
		this.serverSecret = serverSecret;
	}
	public String getDubboGroup() {
		return dubboGroup;
	}
	public void setDubboGroup(String dubboGroup) {
		this.dubboGroup = dubboGroup;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}

	@Override
	public String toString(){
		return JSON.toJSONString(this);
	}
}
